From 3dd98c5e029464c12ede4462e4a5be588660bd82 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 7 Nov 2005 12:30:35 +0100 Subject: [PATCH] Added assertion, to stop it blowing up more obscurely a little later. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/xenstore/xstransact.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/python/xen/xend/xenstore/xstransact.py b/tools/python/xen/xend/xenstore/xstransact.py index 8d3adb1771..eb39368068 100644 --- a/tools/python/xen/xend/xenstore/xstransact.py +++ b/tools/python/xen/xend/xenstore/xstransact.py @@ -11,6 +11,8 @@ from xen.xend.xenstore.xsutil import xshandle class xstransact: def __init__(self, path): + assert path is not None + self.in_transaction = False # Set this temporarily -- if this # constructor fails, then we need to # protect __del__. -- 2.30.2